package xgenerator.constants;

public interface MySqlDataTypes {
	
	/**
	 * byte
	 */
	public static final String TINYINT_TYPE = "tinyint";
	
	/**
	 * short
	 */
	public static final String SMALLINT_TYPE = "smallint";
	
	/**
	 * int
	 */
	public static final String MEDIUMINT_TYPE = "mediumint";
	
	/**
	 * int
	 */
	public static final String INT_TYPE = "int";
	
	/**
	 * long
	 */
	public static final String BIGINT_TYPE = "bigint";
	
	/**
	 * float
	 * FLOAT类型用于表示近似数值数据类型
	 */
	public static final String FLOAT_TYPE = "float";
	
	/**
	 * double
	 * MySQL将DOUBLE视为DOUBLE PRECISION(非标准扩展)的同义词。MySQL还将REAL视为DOUBLE PRECISION(非标准扩展)的同义词，除非SQL服务器模式包括REAL_AS_FLOAT选项。
	 */
	public static final String DOUBLE_TYPE = "double";
	
	/**
	 * big_decimal
	 * DECIMAL和NUMERIC类型在MySQL中视为相同的类型。它们用于保存必须为确切精度的值，例如货币数据
	 */
	public static final String NUMERIC_TYPE = "numeric";

	/**
	 * 数字类型
	 */
	public static final String DECIMAL_TYPE = "decimal";
	
	
	

	/**
	 * 日期时间
	 */
	public static final String DATETIME_TYPE = "datetime";
	
	/**
	 * 日期
	 */
	public static final String DATE_TYPE = "date";
	
	/**
	 * 时间戳
	 */
	public static final String TIMESTAMP_TYPE = "timestamp";
	
	/**
	 * 时间
	 */
	public static final String TIME_TYPE = "time";
	
	/**
	 * 年
	 */
	public static final String YEAR_TYPE = "year";
	
	/**
	 * Y2K
	 */
	public static final String Y2K_TYPE = "y2k";
	
	
	

	/**
	 * 字符类型
	 */
	public static final String CHAR_TYPE = "char";
	
	/**
	 * 变长字符
	 */
	public static final String VARCHAR_TYPE = "varchar";

	/**
	 * BINARY
	 */
	public static final String BINARY_TYPE = "binary";

	/**
	 * VARBINARY
	 */
	public static final String VARBINARY_TYPE = "varbinary";
	
	/**
	 * 二进制对象类型
	 */
	public static final String BLOB_TYPE = "blob";
	
	/**
	 * 文本类型
	 */
	public static final String TEXT_TYPE = "text";
	

	/**
	 * ENUM
	 */
	public static final String ENUM_TYPE = "enum";
	
	/**
	 * SET
	 */
	public static final String SET_TYPE = "set";

}
